package com.wocai.jrt.orgadmin.approve.service.impl;

import java.util.List;

import javax.inject.Inject;
import javax.inject.Named;

import com.wocai.jrt.orgadmin.approve.dao.ApproveRoleGroupDao;
import com.wocai.jrt.orgadmin.approve.model.ApproveRoleGroup;
import com.wocai.jrt.orgadmin.approve.model.ApproveRoleGroupBean;
import com.wocai.jrt.orgadmin.approve.service.spi.ApproveRoleGroupService;
import com.vteba.service.generic.impl.MyBatisServiceImpl;
import com.vteba.tx.jdbc.mybatis.spi.BaseDao;

/**
 * 审批角色团队相关的service业务实现。
 * @author yinlei
 * @date 2016-3-17 17:34:00
 */
@Named
public class ApproveRoleGroupServiceImpl extends MyBatisServiceImpl<ApproveRoleGroup, ApproveRoleGroupBean, String> implements ApproveRoleGroupService {
	// 添加了方法后，记得改为private
	protected ApproveRoleGroupDao approveRoleGroupDao;
	
	@Override
	@Inject
	public void setBaseDao(BaseDao<ApproveRoleGroup, ApproveRoleGroupBean, String> approveRoleGroupDao) {
		this.baseDao = approveRoleGroupDao;
		this.approveRoleGroupDao = (ApproveRoleGroupDao) approveRoleGroupDao;
	}

	@Override
	public List<ApproveRoleGroup> myPagedList(ApproveRoleGroup model) {
		return approveRoleGroupDao.myPagedList(model);
	}

	@Override
	public ApproveRoleGroup getInvestmentHead(String lawEmployeeId) {
		return approveRoleGroupDao.getInvestmentHead(lawEmployeeId);
	}

	@Override
	public ApproveRoleGroup getLawComplieHead(String lawEmployeeId) {
		return approveRoleGroupDao.getLawComplieHead(lawEmployeeId);
	}
}
